import { http } from '@/utils/axios/init'
export interface BasicResponseModel<T = any> {
  code: number
  msg: string
  data: T
}

// 查询组织角色列表
export function getOrgRoleList(params) {
  return http.request<BasicResponseModel>({
    url: '/system/Rest/role/getOrgRoleList',
    method: 'GET',
    params
  })
}

// 查询预制角色和自定义角色(排序)
export function getRoleListSort(params) {
  return http.request({
    url: `/system/Rest/role/getRoleSortWeightList`,
    method: 'get',
    params
  })
}
